{extend name="common/base" /}
{block name="title"}添加文章分类{/block}
{block name="main"}
<script src="/ad/js/article/at_add.js"></script>
     <!-- Navigation -->
	   <div id="page-wrapper">
        <div class="col-md-12 graphs">
		<div class="xs">
  	    <h3>{$res['article_id']?"编辑分类":"添加分类"}</h3>
        <div class="well1 white" style="float: left;">
        <h5 ><a href="{:url('Article/a_type')}"><span class="label label-success">返回列表</span></a></h5>
        </div>
  	    <div class="well1 white">
        <form class="form-floating" id="at_add" novalidate="novalidate" ng-submit="submit()" action="{:url('Article/doat_add')}" method ='post' enctype="multipart/form-data">
          <fieldset>
            <div class="form-group">
              <label class="control-label">分类名称</label>
              <input name="article_type_name" type="text" class="form-control1 article_type_name" value="{$res['article_type_name']?$res['article_type_name']:''}" required="">
              <input type="hidden" name="article_type_id" value="{$res['article_type_id']?$res['article_type_id']:''}">
            </div>
            <div class="form-group">
              <label class="control-label">分类排序</label>
              <input name="article_type_sort" type="text" class="form-control1 article_title" value="{$res['article_type_sort']?$res['article_type_sort']:''}" required="">
            </div>
            <div class="form-group filled">
              <label class="control-label">分类类别</label>
              <select class="form-control1 article_type_level" name="article_type_level">
                <option value="0" {$res['article_type_level']?'':'selected'}>底部文章</option>
                <option value="1" {$res['article_type_level']?'selected':''}>其他文章</option>
              </select>
            </div>
            <div class="form-group">
              <button type="button" class="btn btn-primary">提交</button>
              <button type="reset" class="btn btn-default">重置</button>
            </div>
          </fieldset>
        </form>
      </div>
    </div>
		{/block}



